package zengjin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.stereotype.Service;
import zengjin.common.PageResponse;
import zengjin.model.dto.offer.AddOfferRequest;
import zengjin.model.dto.offer.PageOfferRequest;
import zengjin.model.dto.offer.UpdateOfferRequest;
import zengjin.model.en.Offer;
import zengjin.model.vo.offer.OfferDetailVO;
import zengjin.model.vo.offer.PageOfferVO;

/**
* @author 19324
* @description 针对表【offer】的数据库操作Service
* @createDate 2025-03-04 10:00:12
*/
@Service
public interface OfferService extends IService<Offer> {

    Boolean addOffer(AddOfferRequest addOfferRequest);

    Boolean updateOfferStatus(Long offerId, String offerStatus);

    Boolean updateOffer(UpdateOfferRequest updateOfferRequest);

    PageResponse<PageOfferVO> pageOffer(PageOfferRequest pageOfferRequest);

    OfferDetailVO getOfferDetailById(Long offerId);
}
